package com.real.fact.web.customer.view;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.Errors;

import com.globant.katari.core.spring.controller.SimpleFormCommandController;
import com.real.fact.web.customer.application.SaveCustomerCommand;

public abstract class EditCustomerController extends
    SimpleFormCommandController {

  @SuppressWarnings("rawtypes")
  @Override
  protected Map referenceData(final HttpServletRequest request,
      final Object command, final Errors errors) throws Exception {
    SaveCustomerCommand saveCommand = (SaveCustomerCommand) command;
    saveCommand.init();
    return super.referenceData(request, command, errors);
  }

}
